s3zipfunction README

Reference: https://github.com/orangewise/s3-zip


For development:
1. cd into the s3zipfunction folder.
2. in command line run: npm install s3-zip (assumes npm is installed). This will install the s3-zip package required by our lambda function. Do not edit the code in s3-zip.
3. index.js containes the lambda function code which requires the s3-zip above. This code can be edited.

Deploy updated AWS Lambda function:
1. Create a deployment package by going in your file explorer to the s3zipfunction folder. Select all files in the folder (i.e. index.js file & node_modules folder but not the readme) and compress to a zip. NB: DO NOT COMPRESS the s3zipfunction folder as this will not work.
2. Login to AWS and access Lambda.
3. Select 'Functions' and select the 'mgS3Zipper' function (this is our function in Lambda).
4. Deploy the updated code by selecting the 'Code' tab and clicking "Upload" button, select the zip deployment package you created in step 1 & save.